package com.es.designmode.simplefactory;

/**
 * 简单工厂
 * 简单运算工厂类
 *
 * @author Will
 */
public class ClientSide {

    public static void main(String[] args) throws Exception {
        Operation operation = OperationFactory.creatOperation('+');
        operation.setA(10);
        operation.setB(2);

        double res = operation.getResult();

        System.out.println(res);
    }
}
